﻿using System;

namespace UFrameWork
{
    /// <summary>
    /// 视图行为特性
    /// </summary>
    public class UViewAction : Attribute
    {
        /// <summary>
        /// 行为名称
        /// </summary>
        public string Name { get; private set; }

        /// <summary>
        /// 执行顺序
        /// </summary>
        public int Order { get; private set; }

        /// <summary>
        /// 控制器行为
        /// </summary>
        /// <param name="name">名称</param>
        /// <param name="order">执行顺序</param>
        public UViewAction(string name, int order = 1)
        {
            Name    = name;
            Order   = order;
        }
    }
}